Release 10.1A: OpenEdge Data Management:
SQL Reference
PREFIX
Returns the substring of a character string, starting from the position specified by
start_posand ending before the specified character.Syntax
char_expressionEvaluates to a character string, typically a character-string literal or column name. If the expression evaluates to
NULL,PREFIXreturnsNULL.start_posEvaluates to an integer value.
PREFIXsearches the string specified in the first argument starting at that position. A value of1indicates the first character of the string.char_expressionEvaluates to a single character.
ExamplePREFIXreturns the substring that ends before that character. IfPREFIXdoes not find the character, it returns the substring beginning atstart_pos, to the end of the string. If the expression evaluates to more than one character,PREFIXignores all but the first character.The following example shows one way to use the
PREFIXfunction:
Note
Compatibility
Progress extension
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |